import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/tabbar/Home.vue'
import Goodslist from '../views/tabbar/Goods/Goodslist.vue'
import Goodsdetail from '../views/tabbar/Goods/Goodsdetail.vue'
import Goodsdesc from '../views/tabbar/Goods/Goodsdesc.vue'
import Goodscomments from '../views/tabbar/Goods/Goodscomments.vue'
import Shopcar from '../views/tabbar/Goods/shopcar.vue'
import Photo from '../views/Photo/photo_list.vue'
import PhotoInfo from '../views/Photo/Photo_info.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/goods/list',
    component: Goodslist
  },
  {
    path: '/goods/detail/:id',
    component: Goodsdetail
  },
  {
    path: '/goodsdesc/:id',
    component: Goodsdesc
  },
  {
    path: '/goodscomments/:id',
    component: Goodscomments
  },
  {
    path: '/shopcar',
    component: Shopcar 
  },
  {  
    path: '/photo/list',
    component: Photo
  },
  {
    path: '/photo/info/:id',
    component: PhotoInfo
  }
]

const router = new VueRouter({
  routes
})

export default router
